
Namespace _2bMatesSite.Controls
	Imports System
	Imports System.Data
	Imports System.Drawing
	Imports System.Web
	Imports System.Web.UI.WebControls
	Imports System.Web.UI.HtmlControls

	''' <summary>
	'''		Summary description for ListingControl.
	''' </summary>
	Public Partial Class ListingControl
		Inherits System.Web.UI.UserControl
		Private startIndex As Integer = 0
		Private endIndex As Integer = 0
		Private totalCount As Integer = 0

		Public Property StartIndex() As Integer
			Get
				Return startIndex
			End Get
			Set
				startIndex = value
			End Set
		End Property
		Public Property EndIndex() As Integer
			Get
				Return endIndex
			End Get
			Set
				endIndex = value
			End Set
		End Property
		Public Property TotalCount() As Integer
			Get
				Return totalCount
			End Get
			Set
				totalCount = value
			End Set
		End Property

		Public Sub UpdateControlsTexts()
			litStartIndex.Text = startIndex.ToString()
			litEndIndex.Text = endIndex.ToString()
			litTotalCount.Text = totalCount.ToString()
		End Sub

		Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
			' Put user code to initialize the page here


			If (Not Page.IsPostBack) OrElse (Request.UrlReferrer <> Nothing AndAlso Request.UrlReferrer.ToString().IndexOf((Constants.SEARCH)) <> -1) Then
				litStartIndex.Text = startIndex.ToString()
				litEndIndex.Text = endIndex.ToString()
				litTotalCount.Text = totalCount.ToString()
			End If
		End Sub

		#region Web Form Designer generated code
		Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)
			'
			' CODEGEN: This call is required by the ASP.NET Web Form Designer.
			'
			InitializeComponent()
			MyBase.OnInit(e)
		End Sub

		''' <summary>
		'''		Required method for Designer support - do not modify
		'''		the contents of this method with the code editor.
		''' </summary>
		Private Sub InitializeComponent()

		End Sub
#End Region
	End Class
End Namespace






